home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-20
/
bb21tu.zip
/
WILDCARD.DOC
< prev
next >
Wrap
Text File
|
1991-05-30
|
2KB
|
35 lines
Wildcards are supported in many places. With wildcards we attempt to
match something with just more than a straight comparison.
Special characters in the pattern are:
* -- Matches 0 or more characters of any type
@ -- a..z, A..Z
# -- 0..9
+ -- A..z, A..Z, 0..9
? -- A-F, a-f, 0-9 (a hex number)
< -- a..z
> -- A..Z
$ -- =@#+?<>$
= -- Any one character
" -- Escape. The next character in the pattern much match exactly.
wild cards will not be interpreted.
( -- Group. A "(" starts a group and a ")" ends it. For each
group, there must be a matching character in the string.
Example: (abc) matches b. Wild cards are not interpreted.
\ -- The string to the right of the \ is optional. It can be
present and if so must match. If it is missing, it is
a match. Example: a\a will match with a or aa but not ab
Examples:
95* -- Will match anything starting with 95 such as 95020,
95123, 95asb, and 95.
95=== -- Will match anything that starts with 95 and is 5 characters
long. 95020 will match but 9502 will not.
95### -- Will match anything that starts with 95 and has 5 digits.
95020 will match but 95ABC will not.
(WK)6* -- Will match anything starting with W6 or K6.
#SOCAL\.CA\.USA\.NA -- Will match with #SOCAL.CA or #SOCAL but not with
#SOCAL.XXXX